package cn.iocoder.yudao.framework.business.benefit.pojo.dto;

import cn.iocoder.yudao.framework.business.basic.pojo.dto.SaveDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Data
public class BenefitSaveDTO extends SaveDTO {

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "七天退换")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "简介", example = """
            <p>这是权益保证的介绍</p>
            """)
    private String summary;

    @Schema(description = "图标地址", example = "https://example.local/x.png")
    private String iconUrl;

    @Schema(description = "跳转链接", example = "uniapp:/pages/member/vip/benefit")
    private String linkUrl;

    @Schema(description = "排序", example = "1")
    private Integer sort;

}
